package cn.lsc.service.impl;

import cn.lsc.domain.Product;
import cn.lsc.mapper.ProductMapper;
import cn.lsc.service.IProductService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductserviceImpl implements IProductService {

    @Autowired
    private ProductMapper porductMapper;
    @Override
    public Product findById(Long id) {
        return porductMapper.findById(id);
    }

    @Override
    public void add(Product product) {
        porductMapper.add(product);
    }
}
